package com.yanqu.road.server.cmd.peakstronghold;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.activity.PeakStrongholdWarProto;
import com.yanqu.road.server.cmd.CrossCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.manager.peakstronghold.CrossPeakStrongholdMgr;
import com.yanqu.road.server.protocol.Protocol;

//@Cmd(code = Protocol.C_PEAK_STRONGHOLD_DELETE_UNION_MEMBER, desc = "报名期有成员退出")
@Deprecated
public class CrossPeakStrongholdDeleteUnionMemberCmd extends CrossCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(YanQuMessage packet) throws Exception {
        PeakStrongholdWarProto.CrossPeakHoldDeleteUnionMemberReq req = PeakStrongholdWarProto.CrossPeakHoldDeleteUnionMemberReq.parseFrom(packet.getBytes());
        CrossPeakStrongholdMgr.deleteUnionMember(req.getActivityId(), req.getUnionId(), req.getUserId());
    }

    @Override
    public void sendData() {

    }
}
